-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gem summary UI #4061
Gem summary UI #4061
Conversation
Changes to be committed: new file: ui/core/components/gem_summary_action.ts modified: ui/core/individual_sim_ui.ts
Changes to be committed: modified: ui/core/components/gem_summary_action.ts
Changes to be committed: modified: ui/core/components/gear_picker.tsx deleted: ui/core/components/gem_summary_action.ts modified: ui/core/individual_sim_ui.ts
@@ -125,7 +125,7 @@ export class ItemRenderer extends Component { | |||
readonly socketsContainerElem: HTMLElement; | |||
|
|||
constructor(parent: HTMLElement, player: Player<any>) { | |||
super(parent, 'item-picker-root'); | |||
super(parent, 'item-renderer-root'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nested item-picker-root
class was causing rendering issues particularly on mobile
this.container = new ContentBlock(this.rootElem, 'gem-summary-container', { | ||
header: {title: 'Gem Summary'} | ||
}); | ||
|
||
player.gearChangeEmitter.on(() => this.updateTable()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, but looks like indentation got messed up here maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah looks like my editor made these new lines use spaces instead of tabs. Nice catch! It looked fine for me because I use 2-space tab sizing but I'll bet it looks funky if you use anything else
Struggled to push the latest updates to the fork's branch so re-opened the PR
Original PR #4050
Adds a summary of gems in the gear tab as requested by the community. Also makes some visual improves to the mobile layout of the gear tab.